import React,{useState} from 'react'
export default function StateHook() {
  const [count,setCount]=useState(0)
  return (
    <div>
        <h1>State Hook使用</h1>
        <div>{count}</div>
        <button onClick={()=>setCount(count+1)}>+</button>
    </div>
  )
}
